﻿using EntityModel.PageListInfor;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace EntityModel.CommodityMent
{
    /// <summary>
    /// 商品分类
    /// </summary>
    [Table("goods_cats")]
    public class AikeApplet_goods_cats: Pagination
    {
        /// <summary>
        /// 商品分类id
        /// </summary>
        [Key]
        public int catId { get; set; }

        /// <summary>
        /// 父级id
        /// </summary>
        public int parentId { get; set; }

        /// <summary>
        /// 分类名称
        /// </summary>
        [MaxLength(20)]
        public string catName { get; set; }

        /// <summary>
        /// 是否显示
        /// 0:隐藏 1:显示
        /// </summary>
        public int isShow { get; set; } = 1;

        /// <summary>
        /// 删除标志	
        /// 1:有效 0：删除
        /// </summary>
        public int dataFlag { get; set; } = 1;

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime createTime { get; set; }

        /// <summary>
        /// 商品佣金比例	
        /// -1代表使用上级父类的佣金设置
        /// </summary>
        public decimal commissionRate { get; set; }

        /// <summary>
        /// 分类图片
        /// </summary>
        public string catImg { get; set; }

        /// <summary>
        /// 二级标题
        /// </summary>
        [MaxLength(150)]
        public string subTitle { get; set; }

        /// <summary>
        /// 移动端商品简称
        /// </summary>
        [MaxLength(20)]
        public string simpleName { get; set; }

        /// <summary>
        /// 分类SEO关键字
        /// </summary>
        [MaxLength(200)]
        public string seoTitle { get; set; }

        /// <summary>
        /// 分类SEO关键字
        /// </summary>
        [MaxLength(200)]
        public string seoKeywords { get; set; }

        /// <summary>
        /// 分类SEO描述
        /// </summary>
        [MaxLength(2000)]
        public string seoDes { get; set; }

        /// <summary>
        /// 电脑端商品列表模板名
        /// </summary>
        [MaxLength(200)]
        public string catListTheme { get; set; }

        /// <summary>
        /// 电脑端商品详情模板名
        /// </summary>
        [MaxLength(200)]
        public string detailTheme { get; set; }

        /// <summary>
        /// 移动端商品列表模板名
        /// </summary>
        [MaxLength(200)]
        public string mobileCatListTheme { get; set; }
        /// <summary>
        /// 微信端商品列表模板名
        /// </summary>
        [MaxLength(200)]
        public string wechatCatListTheme { get; set; }

        /// <summary>
        /// 微信端商品详情模板名
        /// </summary>
        [MaxLength(200)]
        public string wechatDetailTheme { get; set; }

    }
}
